package com.guigu.controller;

import com.guigu.pojo.Setmeal;
import com.guigu.service.SetmealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@CrossOrigin
@RestController
public class SetmealController {
    @Autowired
    SetmealService service;
    @GetMapping("/showsex")
    public List<Setmeal> showsex(Integer sex){
        return  service.selectByPrimaryKey(sex);

    }
    @GetMapping("/BDetails")
    public List<Setmeal> BDetails(Integer id){
        return service.BDetails(id);
    }

    @GetMapping("/catc")
    public Setmeal ca(Integer id){
        return service.ca(id);
    }

}
